<em>final GlobalKey&lt;ScaffoldState&gt;</em> <s>_scaffoldKey</s> = <em>new</em> <q>GlobalKey</q><em>&lt;ScaffoldState&gt;</em>( );
<em># Drawer 放置位置</em>
<em>Widget build(BuildContext context)</em>>{
	return Scaffold(
		<u>key</u>:<s>_scaffoldKey</s>,
		<b>drawer</b>: <b>Drawer</b>(
			<i>child</i>: <q>Container</q>(
				<em>child</em>: <q>MaterialButton</q>(
					<em>child: Text('打开'),</em>
					<em>onPressed</em>: ( ){
						<b>Navigator.of(context).pop( )</b>; 	<em>// 关闭 Drawer</em>
					},
				)
			)
		)
	)
}
<em># Drawer 打开方式一</em>
<q>MaterialButton</q>(
	<em>child: Text('打开 Drawer')</em>,
	<em>onPressed</em>: ( ){
		<s>_scaffoldKey</s>.<b>currentState.openDrawer( )</b>; 		<em>// 打开 Drawer</em>
	}
)
<em># Drawer 打开方式二</em>
<q>Builder</q>(
	<i>builder</i>: (<em>BuildContext</em> <u>context</u>){
		return <q>MaterialButton</q>(
			<em>child: Text('打开 Drawer')</em>,
			<em>onPressed</em>: ( ){
				<b>Scaffold.of</b>(<u>context</u>).<b>openDrawer( )</b>; 		<em>// 打开 Drawer</em>
			}
		);
	},
)